# helma更新
# sh ../helm.sh

# 创建私有仓库
# k3d registry create

# 安装k3d集群
sh k3d-wasm.sh

# ----------------集群应用环境-----------

## ----------- ingress 选择 ----------------

# ----------- traefik更新版本 ----------------
# sh ../../traefik/traefik-update.sh
kubectl apply -f https://ghproxy.net/https://github.com/deislabs/containerd-wasm-shims/raw/main/deployments/workloads/runtime.yaml
kubectl apply -f https://ghproxy.net/https://github.com/deislabs/containerd-wasm-shims/raw/main/deployments/workloads/workload.yaml

# # ----------- ingress-nginx ----------------
# sh ../helm/ingress/ingress-nginx/ingress-nginx.sh

## ----------- hingress ----------------
# sh ../helm/ingress/higress/init.sh

## ----------- contour更新版本 ----------------
# sh ../helm/ingress/contour/init.sh

## ----------- glooedge ----------------
# sh ../helm/ingress/gloo/init.sh

# ----------- 监控 ----------------
# sh ../helm/len-metrics/init.sh

## -----------OAM模型 kubevela ----------------
# sh ../helm/oam/kubevela.sh

# ----------------证书申请管理-----------
# sh ../helm/cert-manager/cert-manager.sh

# 安装应用
# sh ../helm/app.sh
# kubectl apply -k $HOME/k3d/app/test-youling.io

# ----------- 可观测性 ----------------
# sh ../helm/deepflow/deepflow.sh

# ----------------链路追踪-----------
# sh ../helm/skywalking/skywalking.sh
# kubectl apply -f https://raw.githubusercontent.com/openelb/openelb/master/deploy/openelb.yaml

# ----------------云原生数据库  图数据库-----------
# sh ../helm/dgraph/dgraph.sh

# ----------------微服务-----------

# ----------------消息队列-----------

# sh ../helm/nats/init.sh

# sh ../helm/bigdata/pulsar.sh

#安装Dapr
# sh ../helm/oam/dapr.sh

# ----------------自动扩容-----------
# sh ../helm/oam/keda.sh

# ----------------持续集成-----------
# sh ../helm/cicd/tekton/tekton.sh

# ----------------kubevirt-----------
# k8s调度管理虚拟机
# sh ../helm/kubevirt/init.sh

# ----------------serverless -----------

# -----------------Kourier-kourier---------
# sh ../helm/serverless/knative/serving-kourier.sh

# -----------------knative-contour---------
# sh ../helm/serverless/knative/serving-contour.sh

# ----------------OpenFunction 函数计算-----------
# sh ../helm/serverless/OpenFunction.sh

# ----------------图计算平台(未安装成功)-----------
# sh ../helm/graphscope/init.sh

# ----------------云原生数据库 newsql-----------

#安装Tidb数据库 安装 TiDB Operator 部署 TiDB 集群和监控
# sh ../helm/tidb/install.sh

# ----------------持续集成/持续部署-----------

## ----------- 安装devtron(ci/cd/gitops) 监控 全套----------------
# sh ../helm/cicd/devtroncd/devtroncd.sh

# ----------------GitOps 持续部署 argocd----------------
# sh ../helm/argocd/argocd.sh

# kubectl apply --filename https://storage.googleapis.com/tekton-releases-nightly/pipeline/latest/release.yaml
# kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml
# kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/interceptors.yaml
# kubectl apply --filename https://hub.fastgit.xyz/tektoncd/dashboard/releases/latest/download/tekton-dashboard-release.yaml

## ----------- 私有镜像库 ----------------
# sh ../helm/harbor/harbor.sh

## ----------- 私有代码库 ----------------
# sh ../helm/git/onedev.sh
# sh ../helm/git/gitea.sh

# ----------------工作流 argo workflow-----------
# sh ../helm/argoworkflow/init.sh

## ----------- 多云控制平面 ----------------
# sh ../helm/crossplane/init.sh

# gitlab集成
#  sh ../helm/cicd/gitlab/gitlab.sh

## ----------- 安装neuvector云安全监控----------------
# sh ../helm/neuvector/init.sh

# ----------------longhorn存储----------------
# sh ../helm/longhorn/init.sh

# ----------------元数据框架----------------
# sh ../helm/openMetadata.sh

# ----------------服务网格-----------
# sh ../helm/osm/init.sh

# ----------------管理界面Rancher-----------
# sh ../helm/rancher/rancher.sh

# ----------------集群监控信息-----------
# sh ../helm/metrics/metrics.sh

#镜像构建
# sh ../helm/cicd/shipwright.sh

# ----------------大数据、AI相关-----------
#基于Kubernetes的高性能工作负载调度引擎
# sh ../helm/bigdata/volcano.sh

# ================对象存储==============
# sh ../helm/minio.sh

# ----------------安全策略管理-----------
# 安装策略
# sh ../helm/kyverno.sh

# ----------------开发测试工具-----------
#国产集成工具
# sh ../helm/zadig.sh

#========= kubectl port-forward -n tidb-cluster svc/basic-tidb 4000 > pf4000.out &==========
# mycli 链接客户端带智能提示 mycli -P 4000 -h xxxx -u root -p xxx

# ------------------k8s管理Dashboard---------
# 执行 Kuboard v3 在 K8S 中的安装
# sh ../helm/kuboard.sh

# ------------------国产网关---------
# apisix安装 (20211103 测试成功  侵入性太大 为了控制行为 损失便捷性)
# sh ../helm/apisix.sh

# 安装Prometheus监控系统
# sh ../helm/prometheus.sh

#安装openkruise (阿里自定义的一套管理套件 原地升级 镜像预热 不通用 增加了学习成本)
# sh ../helm/openkruise.sh

# 安装gitopd
# helm install -f values.custom.yaml gitpod gitpod.io/gitpod --version=0.10.0
# 安装证书管理
# kubectl create namespace cert-manager
# helm install cert-manager jetstack/cert-manager  --create-namespace -n cert-manager

# kubectl apply -f https://github.com/kedacore/keda/releases/download/v2.4.0/keda-2.4.0.yaml
# kubectl delete -f https://github.com/kedacore/keda/releases/download/v2.4.0/keda-2.4.0.yaml

# apisix安装 API服务网关
# helm install apisix apisix/apisix
# helm install apisix-dashboard apisix/apisix-dashboard
# helm install apisix-ingress-controller apisix/apisix-ingress-controller --namespace ingress-apisix

#删除apisix
# helm uninstall apisix apisix-dashboard
# helm uninstall apisix-ingress-controller --namespace ingress-apisix
